<?php
const host = "localhost";
const user = "root";
const password = "root";
const dbname = "db1";
const charset = "utf8";

$link=mysqli_connect(host,user,password,dbname);